﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/Master/FrameMain.Master" 
AutoEventWireup="true" CodeBehind="GameShowEdit.aspx.cs" 
Inherits="FortuneHeaven.Admin.Pages.Shop.GameShowEdit" %>
<%@ Register TagPrefix="uc1" TagName="Pagination" Src="~/Controls/Pagination.ascx" %>
<%@ Import Namespace="FortuneHeaven.Admin.Common" %>
<%@ Import Namespace="FortuneHeavenCommon.Enum" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link  href="../../Content/CSS/Common.css" rel="Stylesheet"  type="text/css"/>
    <script type="text/javascript">
        function alertDelete() {
            if (confirm("是否确定要删除这些游戏秀?")) 
                return true;
            }
            else {
                return false;
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="toolbar">
        <asp:Button runat="server" ID="btnAddItem" Text="新增" OnClick="AddItem" />
        <asp:Button runat="server" ID="btnDelete" Text="删除" OnClientClick="return alertDelete();"
            OnClick="DeleteItem" />
    </div>
    <div id="head">
        <div class="left">
            <asp:Label ID="lblDeptName" runat="server" Font-Bold="true"></asp:Label>
            <asp:Label ID="lblStatistic" runat="server"></asp:Label>
        </div>
        <div class="right">
            <asp:Label ID="lblShow" runat="server" Text="显示:"></asp:Label>
            <asp:DropDownList ID="drpPagerSize" AutoPostBack="true" runat="server" OnSelectedIndexChanged="drpPagerSize_SelectedIndexChanged">
            </asp:DropDownList>
        </div>
    </div>
    <asp:ListView ID="lvNews" runat="server" EnableViewState="true" EnableModelValidation="True">
        <LayoutTemplate>
            <div id="list">
                <table id="lvList" cellpadding="0" cellspacing="0" border="0" width="100%">
                    <tr>
                        <th class="sp">
                            &nbsp;
                        </th>
                        <th class="chk">
                            <input id="chkSelectAll" type="checkbox" onclick="SelectAll2();" />
                        </th>
                        <th>
                            游戏秀名称
                        </th>
                        <th>
                            类型
                        </th>
                        <th>
                            需要点数
                        </th>
                        <th>
                            图片
                        </th>
                    </tr>
                    <tbody>
                        <asp:PlaceHolder ID="itemPlaceholder" runat="server" />
                    </tbody>
                </table>
            </div>
        </LayoutTemplate>
        <AlternatingItemTemplate>
            <tr>
                <td class="sp">
                    &nbsp;
                </td>
                
                <td>
                    <asp:CheckBox ID="chkSelect" runat="server" />
                    <asp:HiddenField ID="hfIDs" runat="server" Value='<%# Eval("ID")%>' />
                </td>
                <td>
                    <asp:LinkButton ID="lbOpenDetail" runat="server" OnClick="OpenDetail" Text='<%# Eval("Name")%>'
                        CommandArgument='<%# Eval("ID")%>'></asp:LinkButton>
                </td>
                <td>
                    <%# AttributeHelper.GetDescription((GameShowType)Eval("Type"))%>
                </td>
                <td>
                    <%# Eval("Price")%>
                </td>
                <td>
                    <img alt="图片" class="smallimg" src='<%=Jzy.Core.Common.Basic.GlobalVar.WebAppPath%><%= FortuneHeavenCommon.ComMethod.CommonPath.GameShow%><%# Eval("Image")%>'/> 
                </td>
            </tr>
        </AlternatingItemTemplate>
        <EmptyDataTemplate>
            <table id="Table2" runat="server">
                <tr>
                    <td>
                        没有记录.
                    </td>
                </tr>
            </table>
        </EmptyDataTemplate>
        <ItemTemplate>
            <tr>
               <td class="sp">
                    &nbsp;
                </td>
                <td>
                    <asp:CheckBox ID="chkSelect" runat="server" />
                    <asp:HiddenField ID="hfIDs" runat="server" Value='<%# Eval("ID")%>' />
                </td>
                <td>
                    <asp:LinkButton ID="lbOpenDetail" runat="server" OnClick="OpenDetail" Text='<%# Eval("Name")%>'
                        CommandArgument='<%# Eval("ID")%>'></asp:LinkButton>
                </td>
                <td>
                    <%# AttributeHelper.GetDescription((GameShowType)Eval("Type"))%>
                </td>
                <td>
                    <%#Eval("Price")%>
                </td>
                <td>
                    <img alt="图片" class="smallimg" src='<%=Jzy.Core.Common.Basic.GlobalVar.WebAppPath%><%= FortuneHeavenCommon.ComMethod.CommonPath.GameShow%><%# Eval("Image")%>'/> 
                </td>
            </tr>
        </ItemTemplate>
    </asp:ListView>
    <div id="foot">
        <div class="foot_left">
        </div>
        <div class="foot_right">
            <uc1:pagination id="usPager" runat="server" />
        </div>
    </div>
</asp:Content>
